const path = require('path');
const util = require('../libs/util');
let wechat_file = path.join(__dirname,'./wechat.txt');

let config = {
    wxConfig: {
        appID: 'wxf7f627ec27fd6eac',
        appsecret: '3f11d8b4bff2e49374f4f248c3b131f6',
        token: 'htltest',
        getAccessToken: function() {
            return util.readFileAsync(wechat_file)
        },
        saveAccessToken: function(data) {
            let content = JSON.stringify(data);
            return util.writeFileAsync(wechat_file,content)
        }
    }
}

module.exports = config;